from utilities.meta_tip import MetaTips as _MetaTips
from models.strategy import SystemProfileTemplate


KEYWORD_TYPE_NAME = {
    'zh_cn': {
        1: '政治',
        2: '涉黄',
        3: '反动',
        4: '涉黑',
        5: '暴恐',
        6: '博彩',
        7: '民生',
        8: '其他',
    }
}


class Tips(_MetaTips):
    zh_cn = [
        "只能为英文字母",
        "名称 '{0}' 重复",
        "已超过上限{0}个",
        "没有选择有效插件"
    ]

    en_us = [
        "can only be letters",
        "Duplicated name '{0}'",
        "The profile template was up to {0}",
        "Not choice plugin"
    ]


ScanProfile_NAME_MAP = {
    'zh_cn': {i.value: i.description for i in SystemProfileTemplate.objects.all()}
}
